//
//  HomeClassesFlowLayout.m
//  AskDoctor
//
//  Created by Li Ming on 2016/12/20.
//  Copyright © 2016年 ly. All rights reserved.
//

#import "HomeClassesFlowLayout.h"

@implementation HomeClassesFlowLayout

-(void)prepareLayout{
    [super prepareLayout];
    
    float width =( [UIScreen mainScreen].bounds.size.width/3.0)-1;
    float height = (self.collectionView.bounds.size.height/2)-0.5;
    self.itemSize = CGSizeMake(width,height);
    
    self.minimumLineSpacing = 1;
    self.minimumInteritemSpacing = 1;
    self.scrollDirection = UICollectionViewScrollDirectionHorizontal;
    
}

@end
